import { defHttp } from '@/utils/http'

enum Api {
  Login = '/user/login',
  Logout = '/user/logout',
}

// 登录
export function loginApi(params: Recordable) {
  return defHttp.post({
    url: Api.Login,
    data: params
  })
}

// 登出
export function logoutApi(params: Recordable) {
  return defHttp.post({
    url: Api.Logout,
    data: params
  })
}
